import { carouselImageList } from '../../server/api'
Component({
  /**
   * 组件的属性列表
   */
  properties: {},

  /**
   * 组件的初始数据
   */
  data: {
    background: [],
    indicatorDots: true,
    vertical: false,
    autoplay: true,
    interval: 2000,
    duration: 500,
  },

  /**
   * 组件的方法列表
   */
  async created(){
      const data = await carouselImageList()
      if(data.code == 200)
      {
        this.setData({background:data.result})
      }
  },
  methods: {},
});
